﻿@{
    ViewBag.Title = "编辑停车场信息";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@using AFT.Parking.Entity;
@model Parking
<div class="content-box">
    <!-- Start Content Box -->
    <div class="content-box-header">
        <h3>编辑停车场信息</h3>
        <div class="clear"></div>
    </div>
    <!-- End .content-box-header -->
    <div class="content-box-content">

        <div class="tab-content default-tab" id="tab2">
            <form method="post" id="frm">
                <fieldset>
                    @Html.Hidden("Id",Model.Id)
                    @Html.Hidden("CreatedBy", Model.CreatedBy)
                    @Html.Hidden("CreatedOn", Model.CreatedOn)
                    <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
                    <p>
                        <label>停车场名称</label>
                        @Html.TextBox("Name", Model.Name, new { @class = "text-input medium-input" })
                        @*<span class="input-notification success png_bg">Successful message</span>*@
                        <!-- Classes for input-notification: success, error, information, attention -->
                        @*<br />
                            <small>A small description of the field</small>*@
                    </p>
                    <p>
                        <label>启用</label>
                        @Html.CheckBox("IsEnable", Model.IsEnable)
                    </p>
                    <p>
                        <label>经纬度</label>
                        @Html.TextBox("LocationX", Model.LocationX, new { @class = "text-input small-input" })
                        -
                        @Html.TextBox("LocationY", Model.LocationY, new { @class = "text-input small-input" })
                        <br />
                        <small>分别输入经度-纬度，小数格式。</small>
                        @*<span class="input-notification error png_bg">Error message</span>*@
                    </p>
                    <p>
                        <label>停车场地址</label>
                        @Html.TextBox("Address", Model.Address, new { @class = "text-input large-input" })
                        @*<span class="input-notification error png_bg">Error message</span>*@
                    </p>
                    <p>
                        <label>代理商</label>
                        @Html.TextBox("Agents", Model.Agents, new { @class = "text-input large-input" })
                    </p>
                    <p>
                        <label>备注</label>
                        @Html.TextBox("Remark", Model.Remark, new { @class = "text-input large-input" })
                    </p>
                    <p>
                        <input class="button" type="submit" id="btnSubmit" value=" 保 存 " />
                        <input class="button" type="button" id="btnBack" value=" 返 回 " /> <br />
                        <span class="input-notification @ViewBag.Icon png_bg">@ViewBag.Message</span>
                        <input type="hidden" id="hd_backUrl" value="/parkingAreas/parkings">
                    </p>
                </fieldset>
                <div class="clear"></div>
                <!-- End .clear -->
            </form>
        </div>
        <!-- End #tab2 -->
    </div>
    <!-- End .content-box-content -->
</div>


